package com.example.e_comm.util;

import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class TokenUtil {

    public String generaToken() {
        return UUID.randomUUID().toString().replace("-","");

    }
    public boolean validaToken(String token){

        return token != null && token.length() == 32;
    }
}